package com.lemo.mapreduce.model;

import java.io.Serializable;

public class Gift implements Serializable {
	private static final long serialVersionUID = 1L;

	private int id; // ID
	private int gid; // 外键 sid 礼物分类
	private String giftName; // 礼物名称
	private String needCoin; // 价格
	private String giftStyle;
	private String giftType;  
	private String giftIcon_25; // 上传小图
	private String giftIcon;  //上传大图
	private String giftSwf; // 上传flash
	private String addTime; //创建时间
	private String giftComment;  //物品描述
	private String delFlag;//删除标志。0正常 1删除
	
	public Gift() {
		
	}
	public Gift(String id,String gid,String giftName,String needCoin,String giftStyle,String giftType,String giftIcon_25,String giftIcon,String giftSwf,String addTime,String giftComment,String delFlag) {
		this.id = Integer.parseInt(id.replace("\"", ""));
		this.gid = Integer.parseInt(gid.replace("\"", ""));
		this.giftName = giftName.replace("\"", "");
		this.needCoin = needCoin.replace("\"", "");
		this.giftStyle = giftStyle.replace("\"", "");
		this.giftType = giftType.replace("\"", "");
		this.giftIcon_25 = giftIcon_25.replace("\"", "");
		this.giftIcon = giftIcon.replace("\"", "");
		this.giftSwf = giftSwf.replace("\"", "");
		this.addTime = addTime.replace("\"", "");
		this.giftComment = giftComment.replace("\"", "");
		this.delFlag = delFlag.replace("\"", "");
	}

	@Override
	public String toString() {
		return "Gift [id=" + id + ", gid=" + gid + ", giftName=" + giftName + ", needCoin=" + needCoin + ", giftStyle="
				+ giftStyle + ", giftType=" + giftType + ", giftIcon_25=" + giftIcon_25 + ", giftIcon=" + giftIcon
				+ ", giftSwf=" + giftSwf + ", addTime=" + addTime + ", giftComment=" + giftComment + ", delFlag="
				+ delFlag + "]";
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getGid() {
		return gid;
	}
	public void setGid(int gid) {
		this.gid = gid;
	}
	public String getGiftName() {
		return giftName;
	}
	public void setGiftName(String giftName) {
		this.giftName = giftName;
	}
	public String getNeedCoin() {
		return needCoin;
	}
	public void setNeedCoin(String needCoin) {
		this.needCoin = needCoin;
	}
	public String getGiftStyle() {
		return giftStyle;
	}
	public void setGiftStyle(String giftStyle) {
		this.giftStyle = giftStyle;
	}
	public String getGiftType() {
		return giftType;
	}
	public void setGiftType(String giftType) {
		this.giftType = giftType;
	}
	public String getGiftIcon_25() {
		return giftIcon_25;
	}
	public void setGiftIcon_25(String giftIcon_25) {
		this.giftIcon_25 = giftIcon_25;
	}
	public String getGiftIcon() {
		return giftIcon;
	}
	public void setGiftIcon(String giftIcon) {
		this.giftIcon = giftIcon;
	}
	public String getGiftSwf() {
		return giftSwf;
	}
	public void setGiftSwf(String giftSwf) {
		this.giftSwf = giftSwf;
	}
	public String getAddTime() {
		return addTime;
	}
	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}
	public String getGiftComment() {
		return giftComment;
	}
	public void setGiftComment(String giftComment) {
		this.giftComment = giftComment;
	}
	public String getDelFlag() {
		return delFlag;
	}
	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	
	
}